xl: Remove clone-and-hack in do_daemonize
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Mar 2014 14:07:05 +0000 (14:07 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 21 Mar 2014 14:35:52 +0000 (14:35 +0000)
commit7ac8aae00121ca8648b1bb5e5d087aee673ad3b1
tree6b7ff02553dcb82552d9a32ec8540ed95dcd7149
parent242e0ee7922dbce4b9866fb2ec65254e174d717c
xl: Remove clone-and-hack in do_daemonize

do_daemonize had open-coded handling of the results from xl_waitpid.

Instead, break out the meat of console_child_report into a new
function child_report (which returns an error code), and use it.

No functional change other than a change to the message printed if
forking the daemonic child fails.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c